package com.beandestroy;

import org.springframework.beans.factory.DisposableBean;

import javax.security.auth.Destroyable;

/**
 * @author wanghp
 * @version 1.0
 * @date 2020/10/29 16:18
 */

public class NormBean {
	public static class A implements DisposableBean {
		public A() {
			System.out.println("A instance");
		}

		@Override
		public void destroy() throws Exception {
			System.out.println("A destroy");
		}
	}

	public static class B implements DisposableBean {
		public B() {
			System.out.println("B instance");
		}

		@Override
		public void destroy() throws Exception {
			System.out.println("B destroy");
		}
	}

	public static class C implements DisposableBean{
		public C(){
			System.out.println("C instance");
		}

		@Override
		public void destroy() throws Exception {
			System.out.println("C destroy");
		}
	}
}
